package _2025_3_12;

class Mythread extends Thread{
    public void run(){
        System.out.println("当前线程"+Thread.currentThread().getName());
    }
}
class Mythread1 extends Thread{
    @Override
    public void run() {
        System.out.println("当前线程"+Thread.currentThread().getName());
    }
}
public class demo4 {
    public static void main(String[] args) {
      Mythread mythread=new Mythread();
      System.out.println("调用run方法前"+Thread.currentThread().getName());
      mythread.run();
      System.out.println("调用run方法后"+Thread.currentThread().getName());
      System.out.println("============");

      Mythread1 mythread1=new Mythread1();
        System.out.println("调用start()前"+Thread.currentThread().getName());
        mythread1.start();
        System.out.println("条用start()前"+Thread.currentThread().getName());

    }
}
